package com.pactera.asmp.server.job.dispatch.impl;

import com.pactera.asmp.server.entity.EventLog;
import com.pactera.asmp.server.job.dispatch.IBaseEvent;

/**
 * 事件
 */

public abstract class BaseEvent implements IBaseEvent {

    private String data;

    private Class dataType;

    private Long eventId;

    private Integer retry=0;

    private Long originId=0L;

    private Long traceId=0L;


    @Override
    public String getData() {
        return data;
    }

    @Override
    public Class getDataType() {

        return dataType;
    }

    public void setDataType(Class dataType){
        this.dataType = dataType;
    }

    public void setData(String data){
        this.data = data;
    }

    public void setRetry(Integer retry){
        this.retry = retry;
    }

    public Long getEventId(){
        return eventId;
    }

    public int getRetry(){
        return retry;
    }

    public void setEventId(Long eventId){
        this.eventId =  eventId;
    }

    public Long getOriginId() {
        return originId;
    }

    public void setOriginId(Long originId) {
        this.originId = originId;
    }

    public Long getTraceId() {
        return traceId;
    }

    public void setTraceId(Long traceId) {
        this.traceId = traceId;
    }

}
